<?php

// phpMyRealty 3
//
// File Name: login.php
// File Location : ./templates/default/
//
// Copyright (c)2009 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

  echo table_header ( $lang['Menu_User_Login'] );

  // Output the form
  echo '
   <form action="' . URL . '/login.php" method="POST">
    <table width="100%" cellpadding="5" cellspacing="0" border="0">
       ';

  echo userform ($lang['Realtor_Login'], '<input type="text" size="7" name="login" maxlength="50">');
  echo userform ($lang['Realtor_Password'], '<input type="password" size="7" name="password" maxlength="50">');
  echo userform ('', '<input type="submit" class="submit" value="' . $lang['Realtor_Login'] . '">');

  echo '
    </table>
   </form>
       ';

  echo '<div align="center">';

   if (!isset($_SESSION['login']) && $conf['rewrite'] == 'ON')
   echo '<br /> <a href="' . URL . '/submit.html">' . $lang['Menu_Submit_Listing'] . '</a><br />';
   if (!isset($_SESSION['login']) && $conf['rewrite'] != 'ON')
   echo '<br /> <a href="' . URL . '/submit.php">' . $lang['Menu_Submit_Listing'] . '</a><br />';

  echo '</div>';

  echo table_footer ();

?>